package com.sand.service;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.sand.entity.*;
import com.sand.util.PageModel;
import net.sf.jsqlparser.expression.operators.relational.OldOracleJoinBinaryExpression;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

public interface IUserInfoService {
    //前端登录
    HashMap<String,Object> login(String name , String pwd);

    HashMap<String,Object> queryUserInfoById(int id);
    PageModel<HashMap<String,Object>> queryUserInfoLimit(int limit, int page, String condition);
    boolean queryUserInfoByPhone(String phone);
    List<HashMap<String, Object>> queryCollectionEntityById(int id);

    //查询租客预约信息
    PageModel<HashMap<String,Object>> queryTenantHouseViewLimit(int limit,int page,String condition);

    boolean addCollection(String data);
    boolean addUserInfo(String data);
    boolean updateUserInfo(String data);
    boolean delUserInfo(String data);
    boolean all(int userid,int houseId);
    boolean ushou(String data);

    //===============lyl=================
    //更新用户基本信息和详细详细
    JSONObject updateUserData(UserinfoEntity userinfo,UserdetailsEntity userdetailsEntity);
    //实名认证操作
    boolean addUserIdCaderImg(UserattachmentEntity userattachment);
    //查询实名信息
    UserattachmentEntity queryUserAchmentImg(int uid);

}
